---
import Default from '@astrojs/starlight/components/Head.astro';

const slug = Astro.locals.starlightRoute.slug;

const url = new URL(Astro.url);
url.pathname = `/og/docs${slug ? `/${slug}` : ''}.webp`;
---

<Default {...Astro.props} />
<meta property="og:image" content={url.href} />
<meta name="twitter:image" content={url.href} />
<meta name="twitter:card" content="summary_large_image" />
<link rel="sitemap" href="/sitemap.txt" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
